package com.junyuan.gsp.dao;

import com.junyuan.gsp.bean.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author: junyuan
 */
@Mapper
public interface ProductDao
{
    List<Product> findProducts(Map<String, Object> map);

    Integer findProductsCount(Map<String, Object> map);

    Product findProductById(Integer id);

    int insertProduct(Product product);

    void deleteProductById(Integer id);

    void deleteProducts(String ids);

    int updateProduct(Product product);
}
